<!DOCTYPE html>
<!--        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/axios.js"></script>
    <script type="text/javascript" src="js/api.js"></script>

    <script type="text/javascript">
        $(function () {

            axiosRequest("get", "/system/permission/getModule").then((res)=>{
                let resultMsg = res.data;
                if (resultMsg.code === 401) {

                } else if (resultMsg.code !== 200) {

                } else {

                    menuInit(resultMsg.data);

                    //导航切换
                    $(".menuson .header").click(function () {
                        var $parent = $(this).parent();
                        $(".menuson>li.active").not($parent).removeClass("active open").find('.sub-menus').hide();

                        $parent.addClass("active");
                        if (!!$(this).next('.sub-menus').size()) {
                            if ($parent.hasClass("open")) {
                                $parent.removeClass("open").find('.sub-menus').hide();
                            } else {
                                $parent.addClass("open").find('.sub-menus').show();
                            }


                        }
                    });

                    // 三级菜单点击
                    $('.sub-menus li').click(function (e) {
                        $(".sub-menus li.active").removeClass("active")
                        $(this).addClass("active");
                    });

                    $('.title').click(function () {
                        var $ul = $(this).next('ul');
                        $('dd').find('.menuson').slideUp();
                        if ($ul.is(':visible')) {
                            $(this).next('.menuson').slideUp();
                        } else {
                            $(this).next('.menuson').slideDown();
                        }
                    });
                }
            })

        })

        function menuInit(data) {
            let html = ``;
            for (let i = 0; i < data.length; i++) {
                let child = data[i];
                html += `<dd><div class="title">`+child[0].moduleRName+`</div><ul class="menuson">`
                for (let j = 1; j < child.length; j++) {
                    html += `<li><cite></cite><a href="`+child[j].moduleMUrl+`.html" target="rightFrame">`+child[j].moduleRName+`</a><i></i></li>`
                }
                html += `</ul></dd>`
            }
            $("#leftmenu").html(html);
        }
    </script>


</head>

<body style="background:#fff3e1;">
<div class="lefttop">
    <span></span><a href="index.html" target="rightFrame">首页</a>
</div>
<dl class="leftmenu" id="leftmenu">
<!--    <dd>-->
<!--        <div class="title">营销管理</div>-->
<!--        <ul class="menuson">-->
<!--            <li><cite></cite><a href="market/customer/customerList.html" target="rightFrame">客户管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="market/customerBrowse/customerBrowse.html" target="rightFrame">客户浏览</a><i></i></li>-->
<!--            <li><cite></cite><a href="market/order/orderList.html" target="rightFrame">订购单管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="market/orderExamine/orderExamineList.html" target="rightFrame">订购单审核</a><i></i></li>-->
<!--        </ul>-->
<!--    </dd>-->


<!--    <dd>-->
<!--        <div class="title">仓库管理</div>-->
<!--        <ul class="menuson">-->
<!--            <li><cite></cite><a href="storage/storage/storageList.html" target="rightFrame">仓库管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="storage/storageBrowse/storageBrowse.html"-->
<!--                                target="rightFrame">仓库浏览</a><i></i></li>-->
<!--            <li><cite></cite><a href="storage/delivery/deliveryList.html" target="rightFrame">出库管理</a><i></i>-->
<!--            </li>-->
<!--            <li><cite></cite><a href="storage/stock/stockList.html" target="rightFrame">入库管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="storage/inventory/inventoryList.html" target="rightFrame">库存管理</a><i></i>-->
<!--            </li>-->
<!--        </ul>-->
<!--    </dd>-->


<!--    <dd>-->
<!--        <div class="title">采购管理</div>-->
<!--        <ul class="menuson">-->
<!--            <li><cite></cite><a href="purchase/purchase/purchaseList.html" target="rightFrame">采购单管理</a><i></i>-->
<!--            </li>-->
<!--            <li><cite></cite><a href="purchase/purchaseExamine/purchaseExamineList.html"-->
<!--                                target="rightFrame">采购单审核</a><i></i></li>-->
<!--            <li><cite></cite><a href="purchase/brand/brandList.html" target="rightFrame">品牌管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="purchase/productType/productTypeList.html"-->
<!--                                target="rightFrame">商品类型管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="purchase/product/productList.html" target="rightFrame">商品管理</a><i></i>-->
<!--            </li>-->
<!--            <li><cite></cite><a href="purchase/manufacturer/manufacturerList.html"-->
<!--                                target="rightFrame">厂商管理</a><i></i></li>-->
<!--        </ul>-->
<!--    </dd>-->

<!--    <dd>-->
<!--        <div class="title">数据统计</div>-->
<!--        <ul class="menuson">-->
<!--            <li><cite></cite><a href="statis/sales/salesStatis.html" target="rightFrame">客户销量统计</a><i></i></li>-->
<!--            <li><cite></cite><a href="statis/purchase/purchaseStatis.html" target="rightFrame">厂商采购统计</a><i></i>-->
<!--            </li>-->
<!--            <li><cite></cite><a href="statis/delivery/deliveryStatis.html" target="rightFrame">出库统计</a><i></i>-->
<!--            </li>-->
<!--            <li><cite></cite><a href="statis/stock/stockStatis.html" target="rightFrame">入库统计</a><i></i></li>-->
<!--        </ul>-->
<!--    </dd>-->
<!--    <dd>-->
<!--        <div class="title">系统管理</div>-->
<!--        <ul class="menuson">-->
<!--            <li><cite></cite><a href="sys/users/userList.html" target="rightFrame">用户管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="sys/dept/deptList.html" target="rightFrame">部门管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="sys/position/positionList.html" target="rightFrame">职位管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="sys/modules/moduleList.html" target="rightFrame">模块管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="sys/logs/logList.html" target="rightFrame">日志管理</a><i></i></li>-->
<!--            <li><cite></cite><a href="sys/area/areaList.html" target="rightFrame">区域管理</a><i></i></li>-->
<!--        </ul>-->
<!--    </dd>-->

</dl>
<div id="tip" class="tip">
    <div class="tiptop"><span>提示信息</span><a onclick="tipClose()"></a></div>
    <div class="tipinfo"> <span><img src="./images/ticon.png" /></span>
        <div class="tipright">
            <p></p>
            <cite>如果是请点击确定按钮 ，否则请点取消。</cite> </div>
    </div>
    <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" onclick="tipClose()" />
        &nbsp;
        <!--        <input name="" type="button"  class="cancel" value="取消" onclick="tipClose()" />-->
    </div>
</div>
</body>
</html>
